package com.mymvc.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: ProductController
 * Package: com.mymvc.handle
 * Description:
 *
 * @Author 刘英杰
 * @Create 2025/2/11 21:40
 * @Version 1.0
 */

@Controller
@RequestMapping("/product")
public class ProductController {
    @GetMapping("/list")
    public String list(Model model) {
        System.out.println("查询商品信息");
        model.addAttribute("id",123);

        return "list";
    }
}
